#coding=utf-8
#one
a_list = [1,2,3,2,2]
b_list=a_list[:]
for i in b_list:
    if i ==2:
        a_list.remove(i)
print(a_list)


#two
# str='t==open("xx.py","x").write("lmin")'
# str='print("lmin")'
# t=open("xx.py","w").write("lmin")#测试使用
# print(t)#测试使用
# code =compile(str,'xx.py','eval')
# eval(code)

code = compile("open('lmin.py','w',encoding='utf-8').write('lmin')",'lmin.py','eval')
eval(code)
code1 = eval("open('lmin.py','r',encoding='utf-8').read()")
print(code1)
#three
# import  random
# m=5
# while m >0:
#     n = random.randint(0, 100)
#     print(n)
#     i = int(input("输入一个整数："))
#     m = m - 1
#     if i >n:
#         print('猜大了')
#     if i <n:
#         print("猜小了")
#     if i ==n:
#         print("恭喜你,猜对了")
#         break